﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace CodeGeneration
{
    class Class1
    {
        public static void Main(string[] args)
        {
            //string src_gen_dir_path = @"src-gen";

            string templateDirectory = Path.GetDirectoryName("src-gen");
            Console.WriteLine(templateDirectory);


            // Create an instance of StreamWriter to write text to a file.
            // The using statement also closes the StreamWriter.
            using (StreamWriter sw = new StreamWriter("C:\\Documents and Settings\\foxmehdi\\Mes documents\\Visual Studio 2010\\Projects\\Language1\\CodeGeneration\\src-gen\\TestFile.txt"))
            {
                // Add some text to the file.
                sw.Write("This is the ");
                sw.WriteLine("header for the file.");
                sw.WriteLine("-------------------");
                // Arbitrary objects can also be written to the file.
                sw.Write("The date is: ");
                sw.WriteLine(DateTime.Now);
            }


        }
    }
}
